package com.jinke.api.modules.app.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum BalanceType {

    BALANCE(0, "余额"),

    EARNEST(1, "保证金"),
    DEPOSIT(2, "押金"),
    CREDIT(3, "信用额度"),
    ;

    @EnumValue
    private final int value;
    private final String desc;

    BalanceType(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @JsonValue
    public int getValue() {
        return this.value;
    }
}